Xbasic

CONTROLPANEL.SETFOCUS Function

Syntax

.SetFocus(C objectname[,C classname])

Arguments

objectnameCharacter

The name of a Control Panel object.

classnameCharacter

Optional. The name of class of objects. The following values are available.

"BROWSE"
"FORM"
"CODE"
"LABEL"
"LETTER"
"OPERATION"
"REPORT"
"TABLE"

Description

The CONTROLPANEL.SETFOCUS() method sets focus to the selected control panel object.

You must have something already selected on the same Control Panel tab window for the function to work.

Example

ControlPanel.SetFocus("edit_customer_info", "form")
controlpanel.setfocus("invoice_items", "table")

See Also